package cn.cjxy.day15employeemanagement.mapper;

import cn.cjxy.day15employeemanagement.domain.Dept;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface DeptMapper {
    //新增没有返回值
    void addDept(Dept dept);

    void updateDept(Dept dept);

    void delDeptById(Long id);
    
    Dept selectById(Long id);
    
    List<Dept> selectAllDepts();

    //批量添加
    int batchInsertDepts(List<Dept> deptList);
}